<template>
    <div class="com-loading">
        <img src="@/assets/img/loading.gif" alt="">
        <div v-if="loadingPre != null">{{loadingPre}} %</div>
    </div>
</template>

<script>
export default {
    name: 'comLoading',
    props: {
        loadingPre: {
            type: Number,
            default: null
        }
    }
}
</script>

<style lang="scss" scoped>
.com-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}
</style>